doctype html
html
    head
        link(rel="icon" href="/Favicon.ico" type="image/x-icon")
        script(type="text/javascript" src="javascripts/jQueryMytable.js")
        script(type="text/javascript" src="javascripts/table2excel.js")
        title #{TitleBar}
        script(type='text/javascript' src='javascripts/jquery.wheelmenu.js')
        link(rel='stylesheet' type='text/css' href='stylesheets/default.css')
        link(rel='stylesheet' type='text/css' href='stylesheets/style.css')
        link(rel='stylesheet' type='text/css' href='stylesheets/elusive-webfont.css')
        link(rel='stylesheet',type='text/css',href='stylesheets/viewtables.css')
        body
            //图标淡出效果
            .data_success
                span.str
            //右击选项卡功能
            #menutab
                ul
                    li
                        a(href='javascript:void(0)' onclick="ViDaSou()") 查看数据来源
                    li
                        a(href='javascript:void(0)' onclick="Regrasp()") 重抓该数据
            //弹出菜单显示详细数据来源框begin
            #hidebg
                p.lrcenter(onclick='hide();' style="font-size:20px;color:red;") 点击关闭
                #strtWrap.strt-wrap
                    .strt-block
                        .strt-block
                            .strt-part
                                span.strt-name.Department 金石物流
                                .line-v
                                    span
                                .strt-block.part-contenct
            #hidebox
            // 右下角功能按钮
            .box(style="position: fixed;right: 17px;bottom: 17px;z-index: 100;")
                a.wheel-button.nw(href='#wheel4')
                    i.customicon-plus
                ul#wheel4.wheel(data-angle='NW')
                    li.item
                        a(href='#' title="锁定")
                            i.customicon-lock(onclick="saveLock()")
                    li.item
                        a(href='#' title="分析")
                            i.customicon-search
                    li.item
                        a(href='#' title="全屏")
                            i.customicon-screen(onclick="fullScreen(document.documentElement)")
                    li.item(onclick="reserveddecimal()")
                        a(href='#' title="切换小数位数")
                            i(style="font-family:icomoon;") 
            table(id="table2",style="border-bottom-color: black; border-top-color: black; width: 3000px; color: #000000; border-right-color: black; font-size: medium; border-left-color: black" border="1" cellspacing="0" cellpadding="0")
                thead
                    tr
                        th(colspan="37",style="height:60px;text-align:left;font-size:20px;font-weight:700;") #{TitleBar}
                    tr
                        th(colspan="37",style="text-align:left;") 金额单位：万元
                    tr
                        //th(rowspan="4") id
                        th(rowspan="4") 行号
                        th(rowspan="4") 科目
                        th.bgkeee(colspan="6") 公司#{Year - 1}年度
                        th.bgkc(colspan="7") 公司#{Year}年度
                        th.bgkcd(colspan="4") #{Month<=1?Year-1:Year}年#{Month<=1?12:Month-1}月份
                        th.bgkcd(colspan="13") #{Year}年#{Month}月份
                        th.bgkac(colspan="2") #{Month==12?Number(Year)+1:Year}年#{Month==12?1:Month+1}月份
                        th(rowspan="4") 年份
                        th(rowspan="4") 月份
                        th(rowspan="4") 修改日期
                    tr
                        th.bgkeee(colspan="4",rowspan="2") 实际( #{Month} 月份)
                        th.bgkeee(colspan="2",rowspan="2") 实际(1-#{Month}月份累计)
                        th.bgkc(colspan="2",rowspan="2") 计划(年度预算)
                        th.bgkc(colspan="5",rowspan="2") 实际(1-#{Month}月份累计)
                        th.bgkcd(colspan="4",rowspan="2") 实际
                        th.bgkcd(colspan="2",rowspan="2") 计划
                        th.bgkcd(colspan="5",rowspan="2") 实际
                        th.bgkcd(colspan="6",rowspan="1") 差异
                        th.bgkac(colspan="2",rowspan="2") 计划
                    tr
                        th.bgkcd(colspan="2") 环比
                        th.bgkcd(colspan="2") 同比
                        th.bgkcd(colspan="2") 计划比
                    tr
                        th.bgkeee
                            input(type="text" value="抓取")
                        th.bgkeee
                            input(type="text" value="调整")
                        th.bgkeee
                            input(type="text" value="金额")
                        th.bgkeee
                            input(type="text" value="比率")
                        th.bgkeee
                            input(type="text" value="金额")
                        th.bgkeee
                            input(type="text" value="比率")
                        th.bgkc
                            input(type="text" value="金额")
                        th.bgkc
                            input(type="text" value="比率")
                        th.bgkc
                            input(type="text" value="金额")
                        th.bgkc
                            input(type="text" value="比率")
                        th.bgkc
                            input(type="text" value="完成率")
                        th.bgkc
                            input(type="text" value="累比增减额")
                        th.bgkc
                            input(type="text" value="累比增减率")
                        th.bgkcd
                            input(type="text" value="抓取")
                        th.bgkcd
                            input(type="text" value="调整")
                        th.bgkcd
                            input(type="text" value="金额")
                        th.bgkcd
                            input(type="text" value="比率")
                        th.bgkcd
                            input(type="text" value="金额")
                        th.bgkcd
                            input(type="text" value="比率")
                        th.bgkcd
                            input(type="text" value="抓取")
                        th.bgkcd
                            input(type="text" value="调整")
                        th.bgkcd
                            input(type="text" value="金额")
                        th.bgkcd
                            input(type="text" value="比率")
                        th.bgkcd
                            input(type="text" value="完成率")
                        th.bgkcd
                            input(type="text" value="金额")
                        th.bgkcd
                            input(type="text" value="增降幅%")
                        th.bgkcd
                            input(type="text" value="金额")
                        th.bgkcd
                            input(type="text" value="增降幅%")
                        th.bgkcd
                            input(type="text" value="金额")
                        th.bgkcd
                            input(type="text" value="增降幅%")
                        th.bgkac
                            input(type="text" value="金额")
                        th.bgkac
                            input(type="text" value="比率")

                    each val, index in data_field
                        each i, index1 in val
                            if i != 'id'
                                th(style="position: absolute; top: -999em;").noExl= i
                tbody
                    each val, index in data_result
                        case index
                            when 14
                                tr.bgk
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 18
                                tr.bgk
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 24
                                tr.bgk
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 28
                                tr.bgk
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 30
                                tr.bgk
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 53
                                tr.bgk
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 54
                                tr.bgk
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 55
                                tr.bgk
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 75
                                tr.bgk
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 121
                                tr.bgk
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 122
                                tr.bgk
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 123
                                tr.bgkorang
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 124
                                tr.bgkorang
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 125
                                tr.bgkorang
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 126
                                tr.bgkorang
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 127
                                tr.bgkorang
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 128
                                tr.bgkorang
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 129
                                tr.bgkorang
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 130
                                tr.bgkorang
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 131
                                tr.bgkorang
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 132
                                tr.bgkorang
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 133
                                tr.bgkorang
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 134
                                tr.bgkorang
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            when 135
                                tr.bgkorang
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
                            default
                                tr
                                    each i, index1 in val
                                        if index1 != 'id'
                                            td= i
            script(src='javascripts/jquery.ui.draggable.min.js', type='text/javascript')
            script(type="text/javascript" src="javascripts/localstorage/localstorage.js")
            script(type="text/javascript" src="javascripts/editortable.js")
